<?xml version='1.0' encoding='UTF-8' ?>  
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    
<ui:composition xmlns="http://www.w3.org/1999/xhtml"  
                xmlns:ui="http://java.sun.com/jsf/facelets"  
                xmlns:h="http://java.sun.com/jsf/html"  
                template="./template_default.xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">  

    <ui:define name="complementTitreEtH1"> </ui:define>  

    
    <ui:define name="content">  
            <div>
                <fieldset>
                    <legend>Formulaire d'identification : </legend>

                    <h:body>
                        <h:outputText rendered="#{!compteBancaireBean.connectedAdmin and !compteBancaireBean.connectedUser}" value="#{compteBancaireBean.message}" /> 

                        <h:form id="loginForm" rendered="#{!compteBancaireBean.connectedAdmin and !compteBancaireBean.connectedUser}"> <br /><br />
                            Login : <h:inputText id="loginForm" value="#{compteBancaireBean.login}" /> <br />
                            Password : <h:inputText id="password" value="#{compteBancaireBean.password}" /> <br /><br />
                        <h:commandButton value="Login" action="#{compteBancaireBean.checkLogin}" /> 
                        </h:form> 
                        
                        <h:form id="deconnexionForm" rendered="#{compteBancaireBean.connectedAdmin || compteBancaireBean.connectedUser}"> 
                            <h:outputText  value="#{compteBancaireBean.message}" />
                            <h:commandButton value="Deconnexion" action="#{compteBancaireBean.deconnexion}" /> 
                        </h:form> 
                        
                    </h:body>
                    
                </fieldset>

                
            </div>
          <!--</h:form>-->

    </ui:define>  

</ui:composition>  
     